#!/bin/bash
# Zaitan Module - mercury-messenger Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='2.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='net'
RMOD_NAME='mercury-messenger'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='1.9'
RMOD_DESCRIPTION='Installs mercury-messenger'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# Install mercury-messenger


echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install sun-java6-jre

cd /usr/share/zaitan
wget -c http://download.tuxfamily.org/3v1deb//pool/feisty/3v1n0/mercury-messenger_1.9+rc9~3v1ubuntu0_i386.deb
dpkg -i mercury-messenger_1.9+rc9~3v1ubuntu0_i386.deb

apt-get -f install

sleep 2
echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0

